from collections import Iterable, Iterator

str_01 = "123456"
res_01 = iter(str_01)
r1 = isinstance(str_01, Iterator)
r2 = isinstance(str_01, Iterable)
r3 = isinstance(res_01, Iterator)
r4 = isinstance(res_01, Iterable)
print(r1, r2)
print(r3, r4)
